#ifndef GOOGLERECAPTCHA_H
#define GOOGLERECAPTCHA_H

#include <QObject>
#include <QHttp>
#include <QUrl>
#include "captchadesc.h"
#include <QNetworkAccessManager>
#include <QNetworkReply>

class GoogleRecaptcha : public QObject
{
    Q_OBJECT
    QNetworkAccessManager* googet;
    QUrl* lastAddr;
   public:
    explicit GoogleRecaptcha(QObject *parent = 0);
    void getImgAddress(QString);
    void getPage(QString);
    QString createPost(CaptchaDesc*);
    ~GoogleRecaptcha();
signals:
    void imageLocated(QString, QString);
public slots:
    void replied(QNetworkReply*);

};

#endif // GOOGLERECAPTCHA_H
